/**
 *
 * 动土作业票
 * type: span/ span标签； input: el-input； select: el-select
 *
 */

export const groundSafeFormItems = () => {
  return [

    {
      label: "作业部门/施工方",
      prop: "workUnitId",
      type: "treeSelect",
      options: [
        /* 相同的选择项列表 */
      ],
      rules: [{ required: true, errorMessage: "请选择作业部门", trigger: "change" }],
    },

    {
      label: "作业负责人/申请人",
      prop: "head",
      type: "select",
      options: [
        /* 相同的选择项列表 */
      ],
    },
    {
      label: "监护人",
      prop: "guardian",
      type: "select",
      options: [],
      rules: [{ required: true, errorMessage: "请选择监护人", trigger: "change" }],
    },
    {
      label: "具体位置选择",
      prop: "specialLocation",
      type: "map",
      options: [],
      // rules: [{ required: true, errorMessage: "请选择动火地点及部位", trigger: "blur" }],
    },
    {
      label: "作业申请时间",
      prop: "createTime",
      type: "datetime",
      options: [],
      rules: [
        { required: true, errorMessage: "请选择作业申请时间", trigger: "change" },
      ],
    },

    {
      label: "作业内容",
      prop: "specialWorkInfo",
      type: "input",
      options: [],
      rules: [{ required: true, errorMessage: "请输入作业内容", trigger: "blur" }],
    },

    {
      label: "计划作业时间",
      prop: "putTime",
      type: "daterange",
      options: [],
      rules: [
        { required: true, errorMessage: "请选择计划作业时间", trigger: "change" },
      ],
    },
    {
      label: "作业范围、内容、方式(包括深度、面积)",
      prop: "workInfo",
      type: "textarea",
      options: [],
      rules: [
        { required: true, errorMessage: "请输入", trigger: "blur" },
      ],
    },
    {
      label: "作业示意图",
      prop: "",
      type: "upload",
      multiple: true,
      options: [],
      rules: [
        // { required: true, errorMessage: "请选择作业示意图", trigger: "change" },
      ],
    },
    {
      label: "上传人签字",
      prop: "",
      type: "sign",
      options: [],
      rules: [
        // { required: true, errorMessage: "请签字", trigger: "blur" },
      ],
    },

    {
      label: "关联其他特殊作业",
      prop: "associateOthers",
      checkBoxArr: [],
      type: "checkbox",
      options: [
        { value: "临时用电", text: "临时用电" },
        { value: "高处作业", text: "高处作业" },
        { value: "动火作业", text: "动火作业" },
        { value: "动土", text: "动土" },
        { value: "盲板抽堵", text: "盲板抽堵" },
        { value: "断路", text: "断路" },
        { value: "吊装", text: "吊装" },
        { value: "交叉作业", text: "交叉作业" },
      ],
      rules: [
        {
          required: true,
          errorMessage: "请选择关联其他特殊作业",
          trigger: "change",
        },
      ],
    },

    {
      label: "风险辨识",
      prop: "riskIdentification",
      checkBoxArr: [],
      type: "checkbox",
      options: [
        { value: "管线", text: "管线" },
        { value: "电缆破坏", text: "电缆破坏" },
        { value: "坍塌", text: "坍塌" },
        { value: "中毒", text: "中毒" },
        { value: "坠落", text: "坠落" },
        { value: "透水", text: "透水" },
        { value: "火灾爆炸", text: "火灾爆炸" },
        { value: "其他", text: "其他" },
      ],
      rules: [{ required: true, errorMessage: "请选择风险辨识", trigger: "change" }],
    },

    {
      label: "作业票号",
      prop: "jobNumber",
      checkBoxArr: [],
      type: "input",
      options: [],
      disabled: true,
    },
  ];
};
